package com.dream.banana.notify.handler;

import com.dream.banana.notify.recoverer.CustomMessageRecoverer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.ErrorHandler;

/**
 * 躲了一辈子雨，雨会不会很难过。
 * </p>
 * Created by zhumenglong on 2017/5/28.
 */
public class ErrorMessageHandler implements ErrorHandler {
    private static final Logger logger = LoggerFactory.getLogger(CustomMessageRecoverer.class);

    public void handleError(Throwable t) {
        logger.error("ErrorMessageHandler接收到处理异常的消息报错：", t);
    }
}
